package com.hoapital.outpbillwork.module.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hoapital.outpbillwork.module.entity.ClinicVsCharge;
import com.hoapital.outpbillwork.module.mapper.ClinicVsChargeMapper;
import com.hoapital.outpbillwork.module.service.ClinicVsChargeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author lvyao
 * @since 2021-03-02
 */
@Service
public class ClinicVsChargeServiceImpl extends ServiceImpl<ClinicVsChargeMapper, ClinicVsCharge> implements ClinicVsChargeService {

    @Resource
    private ClinicVsChargeMapper clinicVsChargeMapper;

    @Override
    public List<ClinicVsCharge> getOrderItemBillDetail(String clinicItemClass, String clinicItemCode) {
        return clinicVsChargeMapper.getOrderItemBillDetail(clinicItemClass, clinicItemCode);
    }

    @Override
    public String getChargeType(String patientId, String visitNum) {
        return clinicVsChargeMapper.getChargeType(patientId, visitNum);
    }

    @Override
    public String getPatChargeType(String patientId) {
        return clinicVsChargeMapper.getPatChargeType(patientId);
    }
}
